package com.linkit.main;

import android.content.res.AssetManager;
import android.graphics.Typeface;

public class Font {
	
	/** Tên của font trong giao diện */
	private static final String FONT_NAME_SEGOE_UI = "fonts/segoeui.ttf";
	private static final String FONT_NAME_SEGOE_I = "fonts/segoeuii.ttf";
	private static final String FONT_NAME_SEGOE_B = "fonts/seguisb.ttf";
	private static final String FONT_NAME_SEGOE_SM = "fonts/segoe_ui_semilight.ttf";

	/** Font segoe UI */
	public static Typeface fontSegoeUi;
	/** Font segoe UI semilight */
	public static Typeface fontSegoeUiSemiLight;
	/** Font segoe italic */
	public static Typeface fontSegoeI;
	/** Font segoe bold */
	public static Typeface fontSegoeB;
	
	public static void initFont(){
		AssetManager assets = MainActivity.getInstance().getAssets();
		fontSegoeUi = Typeface.createFromAsset(assets,
				FONT_NAME_SEGOE_UI);
		fontSegoeI = Typeface.createFromAsset(assets,
				FONT_NAME_SEGOE_I);
		fontSegoeB = Typeface.createFromAsset(assets,
				FONT_NAME_SEGOE_B);
		fontSegoeUiSemiLight = Typeface.createFromAsset(assets,
				FONT_NAME_SEGOE_SM);
	}

}
